<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
{{ $content }}
</body>
</html>
<script>
    // 倒计时
    var countdown = 60;
    function setTime(){
        if(countdown == 0){
            $('aaa').attr('onclick','sendCode')
            $('aaa').text('发送验证码')
            countdown = 60;
        }else {
            $('aaa').removeAttr('onclick','sendCode')
            $('aaa').text('重新发送'+countdown+'s')
            countdown--;
            setTimeout(function (){
                setTime()
            },1000)
        }
    }
    // 发送验证码
    function sendCode(){
        
    }
</script>